<table>
	<thead>
		<tr>
			<td>Cím</td>
			<td>Tartalom</td>
			<td></td>
			<td></td>
		</tr>
	</thead>
	<tbody>

	<?php foreach ($pages as $page): ?>
		<tr>
			<td><?php echo $page->title ?>
			</td>
			<td><?php echo $page->content ?>
			</td>
			<td><a href="<?php echo URL::site('page/edit/' . $page->id) ?>">Szerkesztés</a>
			</td>
			<td><a href="<?php echo URL::site('page/delete/' . $page->id) ?>">Törlés</a>
			</td>
		</tr>
		
		
<?php endforeach; ?>
</tbody>
</table>
<a href="<?php echo URL::site('page/new') ?>">Új Oldal</a>